<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var fun = function () {
            alert("无参函数");
        };
        //fun();

        var fun2 = function (a, b) {
            alert("有参函数a=" + a + "，b=" + b);
        };
        //fun2(12, 23);

        var fun3 = function (a, b) {
            return a+b;
        };
        //alert(fun3(12, 23));
    </script>
</head>
<body>

</body>
</html>